<?php
namespace app\admin\controller;
use think\Db;
use think\Controller;
class Base extends Controller {

    public function _initialize(){
//        dump($_SESSION);
        if(empty($_SESSION['jmsm_admin']['uid'])){
            $this -> error('请先登录','/admin/login/login');
        }
    }
}